package org.springblade.modules.repair.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.repair.dto.PlanCheckStatisticsQueryDTO;
import org.springblade.modules.repair.entity.MaintainPlanContent;
import org.springblade.modules.repair.vo.plan.statistics.WxBuildingSimpleVO;
import org.springblade.modules.repair.vo.plan.statistics.WxPlanStatusCountVO;
import org.springblade.modules.repair.vo.plan.statistics.WxRepetitionVO;

import java.util.Map;

/**
 * @author zcc
 * @version 1.0
 * @date 2022/1/4 15:26
 */
public interface PlanContentStatisticalService extends BaseService<MaintainPlanContent> {

	WxPlanStatusCountVO wxPlanStatusCount(PlanCheckStatisticsQueryDTO queryDTO);

	WxRepetitionVO wxRepetitionCount(PlanCheckStatisticsQueryDTO queryDTO);

	IPage<WxBuildingSimpleVO> wxBuildingElevatorRepetitionDetail(PlanCheckStatisticsQueryDTO queryDTO, IPage<WxBuildingSimpleVO> page);

    Map<String,Long> wxBuildingElevatorRepetitionCount(PlanCheckStatisticsQueryDTO queryDTO);

    Map<String,Long> wxBuildingCount(PlanCheckStatisticsQueryDTO queryDTO);

	IPage<WxBuildingSimpleVO> wxBuildingDetail(PlanCheckStatisticsQueryDTO queryDTO, IPage<WxBuildingSimpleVO> page);
}
